//
//  PushSecondTwo.m
//  HYHOME
//
//  Created by dllo on 16/2/26.
//  Copyright © 2016年 Mac. All rights reserved.
//

#import "PushSecondTwo.h"
#import "SpeakModel.h"
#import "UIImageView+WebCache.h"
#import "DKNightVersion.h"

@implementation PushSecondTwo

-(void)dealloc{
    [self.image_urls release];
    [super dealloc];


}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        
        [self createSubViews];
        
        
        
    }
    
    
    return self;
}

- (void)createSubViews{
    
    
    self.image_urls = [[UIImageView alloc]init];
    [self.contentView addSubview:self.image_urls];
    
    [self.image_urls release];
      
    
}


- (void)layoutSubviews{
    [super layoutSubviews];
    
    
    
    self.image_urls.frame = CGRectMake(0, 10, self.frame.size.width, 200);
    
    
    
    
    
    
    
}


- (void)passModel:(SpeakModel *)model {
    
    [self.image_urls sd_setImageWithURL:[NSURL URLWithString:model.pic] placeholderImage:[UIImage imageNamed:@"jz"]];
    
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
